package containerlogistik.implementation;

import containerlogistik.interfaces.*;

public abstract class AbstractPallet extends AbstractBody implements Pallet {
    
    StowageLocation loc;
    Stowage stowage;
    
    @Override
    public Mass mass() {
        return Values.ZERO_MASS;
    }
    
    @Override
    public StowageLocation loc() {
        return this.loc;
    }

    @Override
    public void setLocNull() {
        this.loc = Entities.nullLocation();
    }

    @Override
    public void setLoc(Object stowage, StowageLocation loc) {        
        this.loc = loc;
        if (stowage instanceof Stowage) this.stowage = (Stowage)stowage;
    }
}
